#define _CRT_SECURE_NO_WARNINGS 
#include <stdio.h>
void mul(int n)
{
	for (int i = 1; i <= n; i++)
	{
		for (int q = 1; q <= i; q++)
			printf("%d*%d=%d ", q, i, i * q);
		printf("\n");
	}
}
int main()
{
	int n;
	scanf("%d", &n);
	mul(n);
	return 0;
}


